package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.AlarmNoneInforDao;
import wqh.domain.AlarmNoneInfor;
import wqh.service.AlarmNoneInforService;

import java.util.List;

/**
 * Created by devts on 2016/10/20.
 */
@Service("alarmNoneInforService")
public class AlarmNoneInforServiceImpl implements AlarmNoneInforService {

    @Autowired
    private AlarmNoneInforDao alarmNoneInforDao;

    public List<AlarmNoneInfor> findAllRecord() {
        return this.alarmNoneInforDao.findAllRecord();
    }

    public int insertRecord(AlarmNoneInfor alarmNoneInfor) {
        return this.alarmNoneInforDao.insertRecord(alarmNoneInfor);
    }

    public int updateConfirmStatusById(Byte confirm_status, Integer id) {
        return this.alarmNoneInforDao.updateConfirmStatusById(confirm_status,id);
    }

    public int deleteById(Integer id) {
        return this.alarmNoneInforDao.deleteById(id);
    }

    public void deleteAll() {
        this.alarmNoneInforDao.deleteAll();
    }
}
